Tiny PLC Protocol

 

Tiny PLC communication driver is the driver to communicate with Tiny PLC of Comfile Technology Corp. in Korea.

1. Read settings

 

<Figure 1> is read setting example of Tiny PLC communication driver.

<Figure 1>  Read setting example of Tiny PLC communication driver

Communication speed of DEVICE is fixed to 9600, 0, 8, 1. TinyPLC has some type such as TPC32 and TPC37 model.

You have to confirm whether to RS485 Protocol by pressing '?' button of protocol option part, because communication protocol of TinyPLC's RS232 and RS485 are a little different.

<Figure 1> TinyPLC protocol Option

READ schedule example)

READ STATION Read Type Read Start Addr Memory Save Addr Read Size
READ, 0, P, 0, 0, 16,
READ, 0, M, 0, 16, 16,
READ, 0, DW, 0, 32, 16,

1) Read Type : Memory area of TinyPLC(P, M, K, S, F, A, H, I, C, D, H, G, etc). Refer to <Table 2> about contents for detailed area.

2) STATION : Set this when use RS485 module.(0~255)

3) Read Start Address : Address position to read

4) Memory Save Address : Saving start address of Communication Server.

5) Read Size : Number of items to read at a time.

Reference) TinyPLCs has PLC for RS-232 and PLC for RS-485.

 

Usable area at TinyPLC

Area

Description for Area

Read/Write
P

Use P area as BYTE unit

R/W
M

Use M area as BYTE unit

R/W
K

Use K area as BYTE unit

R/W
S

Use S area as BYTE unit¿ë

R/W
F

Use F area as BYTE unit

R/W
A

Use AD area as BYTE unit

R/W
N

Use CNT area as BYTE unit

R/W
T

Use T area as BYTE unit

R/W
C

Use C area as BYTE unit

R/W
D

Use D area as BYTE unit

R/W
H

Use CH area as BYTE unit

R/W
G

Use G area as WORD unit

R/W
PW

Use P area as WORD unit

R/W
MW

Use M area as WORD unit

R/W
KW

Use K area as WORD unit

R/W
SW

Use S area as WORD unit

R/W
FW

Use F area as WORD unit

R/W
AW

Use AD area as WORD unit

R/W
NW

Use CNT area as WORD unit

R/W
TW

Use T area as WORD unit

R/W
CW

Use C area as WORD unit

R/W
DW

Use D area as WORD unit

R/W
HW

Use CH area as WORD unit

R/W
GW

Use G area as WORD unit

R/W
2. Writing settings

Write to direct address of controller, regardless of SCAN File.

 

Digital Write

Digital write setting parameters are as follows :

1) PORT           Connected PORT number           

2) STATION      Station             

3) ADDRESS    Address to output

4) Extra1          Memory area to output

Write example 1) Station : 0, Address : 0000, Extra1 : P

The setting parameter shown above is digital writing example of ON/OFF point of contact for P000:0

 

Analog Write

Analog write setting parameters are as follows :

1) PORT           Connected PORT number           

2) STATION      Station

3) ADDRESS    Address to output

4) Extra1          Memory area to output          You can output to WORD. <All areas that are listed in Table 2>

Write example 1) STATION : 0, ADDRESS : 0001, EXTRA1 : DW

The setting parameter shown above is analog writing example of changing D0001 value.

 

3. Communication cable connection

In case of using RS-232, connect as follows.

It is impossible to communicate with terminal for Ladder.